//
//  HELCommentCell.m
//  NursingAssociation
//
//  Created by wsj2015 on 2017/2/16.
//  Copyright © 2017年 wsj2015. All rights reserved.
//

#import "HELCommentCell.h"
#import "UIImageView+BTimageView.h"
#import "NSString+Utilities.h"
@implementation HELCommentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    wsj_cornerRadius(self.avatar, self.avatar.bounds.size.width/2);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setModel:(HELCourseCommentModel *)model{
 
    [self.avatar nc_setImageWithUrl:model.headImage];
    self.nameL.text = model.realName;
    self.dateL.text = [NSString timeToString:[model.updateDate longLongValue]];
    self.contentL.text = model.courseComment;
    self.ratingView.value = [model.courseScore floatValue]/2;
    
   

}


@end
